home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13086 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: howland.reston.ans.net!gatech!gt-news!james
  2. From: james@amber.biology.gatech.edu (James McIninch)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: This should really be a simple question f
  5. Date: 4 Apr 1996 15:20:05 GMT
  6. Organization: Georgia Institute of Technology
  7. Message-ID: <4k0pb5$s49@mordred.gatech.edu>
  8. References: <4jrue1$gsu@nyheter.chalmers.se> <4jubm6$pal@spanky.pls.ov.com> <4k0lag$hn6@linet06.li.net>
  9. NNTP-Posting-Host: exon.biology.gatech.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Jeremy Markman (jeremy@newshost.li.net) wrote:
  13. : In article gsu@nyheter.chalmers.se, Tobias Nilsson <tb9593@ios.chalmers.se> writes:
  14. : >Anyway... I'm just trying to read the keyboard without having the 
  15. : >characters displayed on the f-cking screen!  Just as that!  But I've
  16. : >tried getchar, scanf, fun.01 int 21h... but they all display them...
  17.  
  18. : The getch() function will not echo keyboard input to the screen...
  19.  
  20. From the Solaris curses man page for getch() (which, by the way, is not a
  21. standard C library function so it's usage and availability will vary from
  22. machine to machine and from OS to OS):
  23.  
  24. DESCRIPTION
  25.      With the getch(), wgetch(), mvgetch(), and  mvwgetch()  rou-
  26.      tines  a character is read from the terminal associated with
  27.      the window.  In no-delay mode, if no input is  waiting,  the
  28.      value  ERR  is  returned.   In delay mode, the program waits
  29.      until  the  system  passes  text  through  to  the  program.
  30.      Depending  on  the  setting  of  cbreak(), this is after one
  31.      character (cbreak mode), or after the  first  newline  (noc-
  32.      break  mode).  In half-delay mode, the program waits until a
  33.      character  is  typed  or  the  specified  timeout  has  been
  34.      reached.   Unless  noecho() has been set, the character will
  35.      also be echoed into the designated window.
  36.  
  37.